package com.eeepay.eeepay_v2.util;

/**
 * Created by zw on 2016/3/2 0002.
 */
public interface Constant {

    int RESULTCODE_100 = 100;
    int RESULTCODE_101 = 101;
    int RESULTCODE_102 = 102;

    interface RequestCode {//请求码
        int agent_all = 0x0000;//代理商
        int device_all = 0x0001;//设备类型
        int ACTIVITY_TYPE = 0x00F;//活动类型
        int card_all = 0x0002;//卡片
        int area_all = 0x0003;//商户地区
        int merchant_state_all = 0x0004;//商户状态
        int trade_state_all = 0x0005;//交易状态
        int person_role = 0x0006;//人员角色
        int person_statu = 0x0007;//人员状态
        int problem_type = 0x0008;//问题类型
        int product = 0x0009;//业务产品
        int has_next = 0x0010;//包含下级
        int no_device_all = 0x0011;//未开通设备类型
        //我要进件
        int PAPERS = 0x0008;//证件资料
        int BASIC_DATA = 0x0009;//基本信息
        int BIS_INFO = 0x00A;//经营信息
        int SETTLEMENT = 0x00B;//结算信息
        int SET_MER_TYPE = 0x00C;
        int SERVICE_RATE = 0x00D;//服务费率
        int SERVICE_LIMIT = 0x00E;//服务限额

    }

    class URL {
//        public static String URL = "192.168.3.190";//刘沙
//        public static String PORT = "8080";


//      public static   String URL = "192.168.3.42";//高伟
//      public static   String PORT = "8090";

//        public static String URL = "192.168.3.180";//180服务器
//        public static String PORT = "8090";

//        public static String URL = "192.168.3.181";//181服务器
//        public static String PORT = "8999";

//        public static String URL = "192.168.1.182";//182服务器
//        public static String PORT = "8090";

        //吕圣伟
//        public static String URL = "192.168.3.14";
//        public static String PORT = "8090";

//        public static String URL = "192.168.3.41";//小明
//        public static String PORT = "8090";

//          public static String URL = "test-agentapi.sqianbao.cn";//准生产
//          public static String PORT = "27010";

        public static String URL = "v2api.sqianbao.cn";//生产域名
        public static String PORT = "27009";


        public static String CANPS_QUERY = "http://www.posp.cn/";
        public static String AGREEMENT_HTML = "file:///android_asset/agreement.html";
//        String URL ="192.168.3.155";//果冻
//        String PORT ="50051";
//        String URL ="192.168.3.188";//
//        String PORT ="8090";
       //192.168.4.24:8090
//       public static  String URL = "192.168.4.24";//家傲`
//       public static  String PORT = "8090";

//        public static String URL = "192.168.3.191";//叶晓明
//        public static String PORT = "8090";

//        public static String URL = "123.207.245.170";//邮储需求地址
//        public static String PORT = "7009";

        //add by zhuangzeqin 2017年9月26日17:46:33 新增资讯模块
        public static final String INFORMATIONURL = "http://www.eeepay.cn/app/video_sdb.php";
    }

    //登陆手机号
    String LOGIN_PHONE = "login_phone";
    //add by zhuangzeqin 2017年4月18日10:53:16  登录密码 用于登录时免输入密码的操作
    String LOGIN_PASS = "login_password";

    String TAG = "TAG";
    //分润设置的填写规则判断正则表达式
    String PROFIT_SET_REG = "(\\d+(\\.\\d+)?%?)|((\\d+(\\.\\d+)?)~(\\d+(\\.\\d+)?)%~" +
            "(\\d+(\\.\\d+)?))|((\\d+(\\.\\d+)?)%\\+(\\d+(\\.\\d+)?))";
    //姓名正则验证
    String NAME_REGEX = "[\u4E00-\u9FA5_a-zA-Z]{1,10}";

    String IS_SINGLE = "is_single";//单选标志
    String INTENT_FLAG = "intent_flag";  //intent跳转标志

    String MY_MERCHANT = "my_merchant";//我的商户、
    String TODAY_MERCHANT = "today_merchant";//今日新增商户
    String WEEK_TRADE = "week_trade";//七日交易情况
    String WEEK_PROFIT = "week_profit";//七日分润情况
    //人员管理
    String PERSON_ROLE = "person_role";//人员角色
    String PERSON_STATUS = "person_status"; //人员状态
    String PROFIT_INFO = "profit_info";//分润信息
    //代理商管理
    String AGENT_ID = "agent_id";//代理商ID
    String AGENT_NAME = "agent_name";//代理商名称
    String CREATE_START_TIME = "create_start_time";//创建开始时间
    String CREATE_END_TIME = "create_end_time";//创建结束时间
    String HAS_CHILD = "has_child";//是否包含下级
    String ISDIRECTCHILD = "isDirectChild";//是否为直接下级 "true" : 是; "false"
    //机具管理
    String DEVICE_SN = "device_sn";//SN号
    String TERMINAL_NUMBER = "terminal_number";//终端号
    String PSAM_NUMBER = "psam_number";//PSAM号
    String DEVICE_STATUS = "device_status";//机具状态
    String DEVICE_TYPE = "device_type";//机具类型
    String MERCHANT_NAME = "merchant_name";//商户名称
    String DEVICE_ISSUE_FLAG = "device_issue_flag";

    String FIND_PWD = "find_pwd";//找回密码
    String MODIFY_PWD = "modify_pwd";//修改
    //消息中心
    String NEWS_CENTER = "news_center";//消息中心
    String USER_ID = "user_id";//用户ID
    String NEWS_ID = "news_id";//消息ID
    String NEWS_TITLE = "news_title";//消息标题
    String CREATE_TIME = "create_time";//发出时间
    String IS_HISTORY = "is_history";//是否为历史消息
    String NEWS_CONTENT = "news_content";//消息内容
    String MESSAGE_IMG = "message_img";//消息图片
    String LINK = "link";//消息链接

    String PROBLEM_TYPE = "problem_type";//问题类型

    String PRODUCT_LIST = "product_list";//产品列表
    String BP_ID = "bp_id";
    String BP_NAME = "bp_name";

    String CARD_TYPE = "card_type";//卡片种类
    String ACTIVITY_TYPE = "activity_type";//活动类型种类
    String ACTIVITY_VALUE = "activity_value";//活动类型对应的值

    String TITLE = "title";//标题
    String CANPS_QUERY = "canps_query";
    String AGREEMENT = "agreement";

    int DEVICE_ISSUE = 0;//机具下发
    int DEVICE_RECYCLE = 1;//机具回收
    int INTO_RATE = 0x00F;//我要进件
    int QUERY_RATE = 0x010;//进件查询

    int GRAY_LUCENCY_COLOR = 0xB2000000;//透明的颜色值

    int grpc_time_out = 20;

    String MERCHANT_NO = "merchant_no";//商户编号
    //商户超级查询
    String MERCHANT_QUERY = "merchant_query";
    String MERCHANT_QUERY_CRI = "merchant_query_cri";//查询条件


    //交易超级查询
    String TRADE_QUERY = "trade_query";
    String TRADE_QUERY_CRI = "trade_query_cri";//查询条件

    //进件
    String FILE_PATH = "filePath";
    String PHOTO = "photo";
    String IMG_FILE = "imgFile";
    String ITEM_ID = "itemId";
    String KEY_LIST = "list";

    //新增代理商
    String PROFIT_TYPE_1 = "固定金额";
    String PROFIT_TYPE_2 = "收益比率";
    String PROFIT_TYPE_3 = "代理成本";

    /**
     * SP Key
     */
    interface KEY {
        String PAPER_FILE = "PaperFile";//证件资料
        String RATE = "Rate";//服务费率
        String LIMIT = "Limit";//服务限额
        String MERTYPE = "MerType";//商户类别一级

        String BP_ID = "bp_id";//业务产品ID
        String MER_NO = "mer_no";//商户号
        String MER_PHONE = "mer_phone";//商户手机号
        String SNO = "sno";//SN号

        //新增代理商
        String AGENT_ADD_INFO = "agentAddInfo";
        String AGENT_ADD_LIST = "agent_add_list";
    }

    /**
     * 提示语
     */
    String TIP_LOADING = "加载中，请稍等";

    //店铺名称，不能有特殊字符，不能为纯数字或字母，只包含数字、字母汉字
    String MER_NAME_REGEX = "^[a-zA-Z0-9\\u4E00-\\u9FA5]+$";
    String NUM_LET_REGEX = "^([A-Za-z]+)|([0-9]+)$";//纯数字或字母
}
